package com.kma.summer2012.facade;

import com.kma.summer2012.model.CrumbsCatalogOfTools;
import com.kma.summer2012.model.CrumbsRequest;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface RequestFacade {
    void changeState(int id, String comment, int senderId) throws Exception;

    Boolean assignRequest(int user_id, int request_id, Date assignDateBegin, Date assignDateEnd) throws Exception;

    CrumbsRequest lastCommentFromMamager(int requestID) throws SQLException;

    Boolean sendForProcessing(int idSender, int idOfRequest) throws Exception;

    CrumbsRequest initializeAdditioools(int idOfRequest) throws Exception;

    Boolean saveProccessHistoryItem(int idSender, int idReciever, int idOfRequest, String comment, String dateOfCreation);

    Boolean closeRequest(CrumbsRequest updateRequest, Map<CrumbsCatalogOfTools, Integer> actualToolsAndAmount);

    void importRequest() throws Exception;

    Boolean deleteRequests(List<Integer> requests_id) throws Exception;

}
